
let SystemEnvironment = {

    getApiBaseUrl(){
        console.log(process.env.NODE_ENV)
        if(process.env.NODE_ENV === 'production'){
            return `http://124.71.27.125:8888`;
        }
        if(process.env.NODE_ENV === 'development'){
            // 内网穿透服务
            return `http://120.78.200.158:7105`;
        }
        return `http://localhost:8888`;
    },
    getWebSocketBaseUrl(){
        if(process.env.NODE_ENV === 'production'){
            return 'ws://124.71.27.125:8888';
        }
        if(process.env.NODE_ENV === 'development'){
            // 内网穿透服务
            return `ws://120.78.200.158:7105`;
        }
        return 'ws://localhost:8888';
    }

}


module.exports = SystemEnvironment;